package com.usermanagement.dto;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class ResetPasswordDTO {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 新密码哈希
     */
    @NotBlank(message = "新密码哈希不能为空")
    @Length(min = 60, max = 60, message = "新密码哈希长度应为60")
    @ApiModelProperty(value = "新密码哈希")
    private String newPasswordHash;
}